#include<stdio.h>
#include<string.h>
int main()
{
    char s1[100]; -
    while(scanf("%s",s1)!=EOF)
    {
        int i,n;
        n=strlen(s1);
        if(s1[n-1]>='4')
        {
            s1[n-2]+=1;
            s1[n-1]='0';
        }
        for(i=n-2;i>0;i--)
        {
            if(s1[i]=='.')
            {
                continue;
            }
            if(s1[i]>'6')
            {
                    
                s1[i]='0';
                if(s1[i-1]=='.')
                {
                    s1[i-2]+=1;
                    continue;
                }
                s1[i-1]+=1;        
            }
        }
        s1[n-1]='\0';
        printf("%s\n",s1);
    }
    return 0;
}
